tests: unbreak testwindows test
authorBenjamin Otte <otte@redhat.com>
Sun, 15 Aug 2010 01:51:39 +0000 (03:51 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 15 Aug 2010 01:51:39 +0000 (03:51 +0200)
Delete code that was broken and also used the APIs I just removed.

tests/testwindows.c

index 48e2b4b2630897aa038d8337cf63c37cac8f680f..4d276ed4a37a5402d30a4f44858df4dc7458446b 100644 (file)
@@ -726,7 +726,6 @@ render_window_cell (GtkTreeViewColumn *tree_column,
                    GtkTreeIter       *iter,
                    gpointer           data)
 {
-  GdkColor *color = NULL;
   GdkWindow *window;
   char *name;
 
@@ -740,10 +739,8 @@ render_window_cell (GtkTreeViewColumn *tree_column,
   else
       name = g_strdup_printf ("%p", window);
 
-  gdk_window_get_background (window, color);
   g_object_set (cell,
                "text", name,
-               "background-gdk", color,
                NULL);
 }